package com.lucy.flow.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;

/**
 * 流程分配创建参数
 */
@Data
@ApiModel(value = "流程节点指派创建参数")
public class FlowNodeAssignCreateParams {

    /**
     * 流程定义编码
     */
    @ApiModelProperty("流程定义编码")
    String flowDefineCode;

    /**
     * 对应流程节点ID
     */
    @NotBlank(message = "流程节点ID不可为空")
    @ApiModelProperty("流程节点ID")
    String flowNodeId;

    /**
     * 指派对象
     */
    @ApiModelProperty(value = "指派对象",notes = "DEPT / ROLE / USER")
    @Column(name = "assign_type")
    String assignType;

    /**
     * 指派对象ID
     */
    @ApiModelProperty("指派对象ID")
    @Column(name = "assign_id")
    String assignId;
}
